import QtQuick 2.15
import QtQuick.Window 2.15

import QtQuick.Controls 2.0

import an.qml.TransObj 1.0



Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

    TransObj{
        id: transobj
    }

    TextField {
            id: inputField
            anchors.centerIn: parent

            onTextChanged: {
                console.log(inputField.text)
                transobj.getFromQml(inputField.text)
            }
        }

        Button {
            text: "Submit"
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.top: inputField.bottom
            onClicked: {
                //myObject.handleInput(inputField.text)
                transobj.getFromQml(inputField.text)
            }
        }
}
